package com.flower.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.flower.mapper.ICommentDao;
import com.flower.pojo.Comment;
import com.flower.service.ICommentService;

/**
 * 商品评论模块
 */
@Service("commentService")
public class CommentServiceImpl implements ICommentService{

	@Resource(name = "ICommentDao")
	private ICommentDao iCommentDao;

	@Override
	public int insertComment(Comment comment) {
		return iCommentDao.insertComment(comment);
	}

	@Override
	public List<Comment> selectAllComments() {
		return iCommentDao.selectAllComments();
	}
}
